'use strict';

var session=require('koa-session');

const CONFIG = {
    key: 'sessionId',   
    maxAge: 86400000,  
    overwrite: true,  
    httpOnly: true, 
    signed: false,   
    rolling: false,  
    renew: false,  
 };


 function newSession(app){
     return session(CONFIG, app);
 }

 module.exports=newSession;